package org.jash.ting13.entity

import org.jash.converters.Xpath
import org.jash.utils.bus

/**
 * Created by Jash
 */
data class Chapter (
    @Xpath("./text()")
    val title:String,
    @Xpath("./@href")
    val url:String
) {
    fun play() {
        bus.postValue("loadPlay" to url)
    }
}